﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0033)http://www.iteye.com/topic/166596 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><HTML 
dir="ltr" xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META content="text/html; charset=UTF-8" 
http-equiv="Content-Type"><TITLE>基于MINA框架快速开发网络应用程序 - Java - ITeye论坛</TITLE>
<META name="description" content="基于MINA框架快速开发网络应用程序 &nbsp; 1．MINA框架简介 MINA(Multipurpose Infrastructure for Network Applications)是用于开发高性能和高可用性的网络应用程序的基础框架。通过使用MINA框架可以可以省下处理底层I/O和线程并发等复杂工作，开发人员能够把更多的精力投入到业务设计和开发当中。MINA框架的应用比较广泛，应用的开源项目有Apac ...">
<META name="keywords" content=" Java"><LINK rel="shortcut icon" type="image/x-icon" 
href="/images/favicon.ico"><LINK title="ITeye论坛" rel="alternate" type="application/rss+xml" 
href="/rss/board/Java"><LINK title="ITeye" rel="search" type="application/opensearchdescription+xml" 
href="/open_search.xml"><LINK rel="stylesheet" type="text/css" href="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/forum.css" 
media="screen">
<SCRIPT type="text/javascript" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/application.js"></SCRIPT>

<SCRIPT type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-535605-1']);
  _gaq.push(['_setDomainName', 'iteye.com']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</SCRIPT>
<LINK rel="stylesheet" type="text/css" href="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/SyntaxHighlighter.css" 
media="screen">
<SCRIPT type="text/javascript" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/shCoreCommon.js"></SCRIPT>

<SCRIPT type="text/javascript" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/hotkey.js"></SCRIPT>

<SCRIPT type="text/javascript" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/code_favorites.js"></SCRIPT>

<SCRIPT type="text/javascript" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/dragdrop.js"></SCRIPT>

<META name="GENERATOR" content="MSHTML 9.00.8112.16561"></HEAD>
<BODY>
<DIV id="page">
<DIV id="header">
<DIV class="clearfix">
<DIV id="user_nav"><A class="welcome" title="登录" href="http://www.iteye.com/login">您还未登录 
!</A><A href="http://www.iteye.com/login">登录</A><A class="nobg" href="http://www.iteye.com/signup">注册</A></DIV>
</DIV>
<DIV class="clearfix">
<DIV id="branding"><A href="http://www.iteye.com/"><IMG title="ITeye-最棒的软件开发交流社区" 
alt="ITeye-最棒的软件开发交流社区" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/logo.gif"></A></DIV>
<DIV id="gg"><IFRAME height="90" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/o.htm" 
frameBorder="0" width="728" scrolling="no"></IFRAME></DIV></DIV></DIV>
<DIV id="content" class="clearfix">
<DIV id="main">
<DIV style="display: none;" class="h-entry"><A class="p-author" href="http://tw801.iteye.com/" 
target="_blank">tw801</A></DIV>
<DIV class="clearfix">
<DIV class="crumbs"><A href="http://www.iteye.com/forums">论坛首页</A> <SPAN class="arrow">→</SPAN><A 
href="http://www.iteye.com/forums/board/Java">Java企业应用论坛</A> <SPAN 
class="arrow">→</SPAN>
<H1>基于MINA框架快速开发网络应用程序</H1></DIV></DIV>
<DIV id="forum_tag_list"><A 
href="http://www.iteye.com/forums/board/Java">全部</A><A href="http://www.iteye.com/forums/tag/Hibernate">Hibernate</A><A 
href="http://www.iteye.com/forums/tag/Spring">Spring</A><A href="http://www.iteye.com/forums/tag/Struts">Struts</A><A 
href="http://www.iteye.com/forums/tag/iBATIS">iBATIS</A><A href="http://www.iteye.com/forums/tag/企业应用">企业应用</A><A 
href="http://www.iteye.com/forums/tag/Lucene">Lucene</A><A href="http://www.iteye.com/forums/tag/SOA">SOA</A><A 
href="http://www.iteye.com/forums/tag/Java%E7%BB%BC%E5%90%88">Java综合</A><A href="http://www.iteye.com/forums/tag/Tomcat">Tomcat</A><A 
href="http://www.iteye.com/forums/tag/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F">设计模式</A><A 
href="http://www.iteye.com/forums/tag/OO">OO</A><A href="http://www.iteye.com/forums/tag/JBoss">JBoss</A></DIV>
<DIV class="actions">
<DIV class="buttons"></DIV>
<DIV class="wrapper">
<DIV id="forum_recommended_f4"><!--AdForward Begin:-->
<SCRIPT type="text/javascript" charset="gbk" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/AllyesDeliver.min.js" ads-src="http://csdnim.allyes.com/main/s?user=iteye|forums|banner3&amp;db=csdnim&amp;border=0&amp;local=yes&amp;js=ie"></SCRIPT>
<!--AdForward End--></DIV>
<DIV class="info">浏览 73785 次</DIV></DIV></DIV>
<TABLE id="forum_main" cellSpacing="1">
  <THEAD>
  <TR>
    <TH class="topic_title" colSpan="2">
      <DIV class="wrapper"><SPAN class="locked">锁定老帖子</SPAN> <A href="http://www.iteye.com/topic/166596">主题：基于MINA框架快速开发网络应用程序</A></DIV>
      <DIV id="topic_rate_box">精华帖 (0) :: 良好帖 (19) :: 新手帖 (12) :: 隐藏帖 
    (0)</DIV></TH></TR>
  <TR>
    <TD class="first_col">作者</TD>
    <TD class="last_col">正文            </TD></TR></THEAD>
  <TBODY id="posts">
  <TR id="475065">
    <TD class="postauthor">
      <UL>
        <LI class="name">tw801</LI>
        <LI>等级: 初级会员</LI>
        <LI><A href="http://tw801.iteye.com/" target="_blank"><IMG class="logo" 
        title="tw801的博客: 杨庆成" alt="tw801的博客" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/6b769433-c130-30b5-8852-9f30588f4876.jpg"></A></LI>
        <LI>性别: <IMG title="男" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/icon_minigender_1.gif"></LI>
        <LI>文章: 2</LI>
        <LI>积分: 72</LI>
        <LI>来自: 北京</LI>
        <LI><IMG src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/offline.gif"></LI></UL></TD>
    <TD class="postcontent">
      <DIV class="postactions">
      <DIV class="description">&nbsp;&nbsp;        发表时间：2008-03-02&nbsp;&nbsp;   
                 </DIV>
      <DIV class="links"></DIV></DIV>
      <DIV class="postbody clearfix">
<SCRIPT type="text/javascript">
      var hunters = ["\u003Ca href='/jobs/2508' target='_blank' style='color:#000;'\u003E\u003Cspan style='font-weight:bold;'\u003E\u4e0a\u6d77: \u003C/span\u003E Senior Software Engineer\u003C/a\u003E","\u003Ca href='/jobs/2509' target='_blank' style='color:#000;'\u003E\u003Cspan style='font-weight:bold;'\u003E\u4e0a\u6d77: \u003C/span\u003E Junior Product Manager\u003C/a\u003E"]
      var hunter_id = Math.ceil(Math.random() * hunters.length) - 1;
      if(hunter_id == -1) hunter_id = 0;
    </SCRIPT>

      <DIV style="background: rgb(255, 255, 255); padding: 4px; border: 1px solid rgb(204, 204, 204); margin-bottom: 10px;" 
      id="hunter_recommended"><SPAN style="margin-right: 5px;" 
      id="hunters_nav"><A style="padding: 0px 3px; border: 1px solid rgb(204, 204, 204); text-decoration: none; size: 13px;" 
      onclick="hunter_id <= 0 ? hunter_id = hunters.length - 1 : hunter_id--; $('hunters').update(hunters[hunter_id]);return false;" 
      href="http://www.iteye.com/topic/166596#">&lt;</A><A style="padding: 0px 3px; border: 1px solid rgb(204, 204, 204); text-decoration: none; size: 13px;" 
      onclick="hunter_id >= hunters.length - 1 ? hunter_id = 0 : hunter_id++; $('hunters').update(hunters[hunter_id]);return false;" 
      href="http://www.iteye.com/topic/166596#">&gt;</A></SPAN>猎头职位: <SPAN id="hunters"></SPAN>
<SCRIPT type="text/javascript">$('hunters').update(hunters[hunter_id]);</SCRIPT>
      </DIV>
      <DIV id="related_topics">相关文章: <SPAN class="close"><A title="关闭" onclick="$('related_topics').hide();if($('hunter_recommended')){$('hunter_recommended').style.width='780px'};if($('topic_tags')){$('topic_tags').style.width='790px'};return false;" 
      href="http://www.iteye.com/topic/166596#">&nbsp;</A></SPAN>
      <UL>
        <LI><A title="Mina框架传递对象" href="http://www.iteye.com/topic/946558" 
        target="_blank">Mina框架传递对象</A></LI>
        <LI><A title="Apache Mina简单实例客户端篇" href="http://www.iteye.com/topic/417710" 
        target="_blank">Apache Mina简单实例客户端篇</A></LI>
        <LI><A title="Apache Mina 2.0的学习研究（一）" href="http://www.iteye.com/topic/577308" 
        target="_blank">Apache Mina 2.0的学习研究（一）</A></LI></UL><BR><SPAN>推荐群组: <A 
      href="http://cpp-circle.group.iteye.com/" 
      target="_blank">C++语言</A></SPAN><BR><A href="http://www.iteye.com/wiki/topic/166596" 
      target="_blank">更多相关推荐</A></DIV>
<SCRIPT type="text/javascript">document.observe("dom:loaded", function() {
                if($('hunter_recommended')) {
                  $('hunter_recommended').setStyle({cssFloat: 'left', width: '557px'})
                }
                if($('topic_tags')) {
                  $('topic_tags').setStyle({width: '567px'})
                }
                new Draggable("related_topics");
              });
            </SCRIPT>

      <P><STRONG>基于MINA框架快速开发网络应用程序</STRONG></P>
      <P>&nbsp;</P>
      <P>1．MINA框架简介 <BR>MINA(Multipurpose Infrastructure for Network 
      Applications)是用于开发高性能和高可用性的网络应用程序的基础框架。通过使用MINA框架可以可以省下处理底层I/O和线程并发等复杂工作，开发人员能够把更多的精力投入到业务设计和开发当中。MINA框架的应用比较广泛，应用的开源项目有Apache 
      Directory、AsyncWeb、Apache 
      Qpid、QuickFIX/J、Openfire、SubEthaSTMP、red5等。MINA框架当前稳定版本是1.1.6，最新的2.0版本目前已经发布了M1版本。 
      <BR>MINA框架的特点有：基于java 
      NIO类库开发；采用非阻塞方式的异步传输；事件驱动；支持批量数据传输；支持TCP、UDP协议；控制反转的设计模式（支持Spring）；采用优雅的松耦合架构；可灵活的加载过滤器机制；单元测试更容易实现；可自定义线程的数量，以提高运行于多处理器上的性能；采用回调的方式完成调用，线程的使用更容易。 
      <BR><BR>2．MINA框架的常用类 <BR>类NioSocketAcceptor用于创建服务端监听； 
      <BR>类NioSocketConnector用于创建客户端连接； <BR>类IoSession用来保存会话属性和发送消息； 
      <BR>类IoHandlerAdapter用于定义业务逻辑，常用的方法有： <BR>方法 定义 <BR>sessionCreated() 
      当会话创建时被触发 <BR>sessionOpened() 当会话开始时被触发 <BR>sessionClosed() 当会话关闭时被触发 
      <BR>sessionIdle() 当会话空闲时被触发 <BR>exceptionCaught() 当接口中其他方法抛出异常未被捕获时触发此方法 
      <BR>messageRecieved() 当接收到消息后被触发 <BR>messageSent() 当发送消息后被触发 
      <BR><BR><BR>3．服务端应用开发示例 
      <BR>下面将以MINA2.0M1版本为基础，通过一个范例来演示一下如何使用MINA框架进行开发。开发环境为jdk6.0，开发工具NetBeans6.0，所需jar包slf4j-api.jar、slf4j-jdk14.jar、MINA-core-2.0.0-M1.jar。 
      <BR>首先定义一个业务逻辑处理器TimeServerHandler，继承自IoHandlerAdapter，实现的功能有：当客户端创建会话时会显示客户端设备的IP和端口；当客户端输入quit时结束会话；客户端输入其它内容时则向客户端发送当前时间。代码如下： 
      <BR>public class TimeServerHandler extends IoHandlerAdapter <BR>{ 
      <BR>@Override <BR>public void sessionCreated(IoSession session) { 
      <BR>//显示客户端的ip和端口 
      <BR>System.out.println(session.getRemoteAddress().toString()); <BR>} 
      <BR>@Override <BR>public void messageReceived( IoSession session, Object 
      message ) throws Exception <BR>{ <BR>String str = message.toString(); 
      <BR>if( str.trim().equalsIgnoreCase("quit") ) { <BR>session.close();//结束会话 
      <BR>return; <BR>} <BR>Date date = new Date(); <BR>session.write( 
      date.toString() );//返回当前时间的字符串 <BR>System.out.println("Message 
      written..."); <BR>} <BR>} <BR>再定义一个类MinaTimeServer用来启动服务端： <BR>public 
      class MinaTimeServer <BR>{ <BR>private static final int PORT = 
      9123;//定义监听端口 <BR>public static void main( String[] args ) throws 
      IOException <BR>{ <BR>IoAcceptor acceptor = new NioSocketAcceptor(); 
      <BR>acceptor.getFilterChain().addLast( "logger", new LoggingFilter() ); 
      <BR>acceptor.getFilterChain().addLast( "codec", new ProtocolCodecFilter( 
      new TextLineCodecFactory( Charset.forName( "UTF-8" ))));//指定编码过滤器 
      <BR>acceptor.setHandler( new TimeServerHandler() );//指定业务逻辑处理器 
      <BR>acceptor.setDefaultLocalAddress( new InetSocketAddress(PORT) );//设置端口号 
      <BR>acceptor.bind();//启动监听 <BR>} <BR>} <BR><BR>4．测试 
      <BR>首先运行MinaTimeServer，启动服务端，接着在命令行运行“telnet 127.0.0.1 
      9123”,来登录，这时会看到服务端输出如下： <BR>2008-2-21 16:15:29 
      org.apache.MINA.filter.logging.LogLevel$4 log <BR>/10.64.2.137:4140 
      IP和端口号 <BR>信息: CREATED <BR>2008-2-21 16:15:29 
      org.apache.MINA.filter.logging.LogLevel$4 log <BR>信息: OPENED 
      在客户端输入回车，在客户端可以看到服务端返回当前的时间： <BR>Thu Feb 21 16:20:14 CST 2008 <BR>服务端输出： 
      <BR>2008-2-21 16:20:14 org.apache.MINA.filter.logging.LogLevel$4 log 
      <BR>信息: RECEIVED: HeapBuffer[pos=0 lim=2 cap=2048: 0D 0A] 接收收到回车符 
      <BR>Message written... <BR>2008-2-21 16:20:14 
      org.apache.MINA.filter.logging.LogLevel$4 log <BR>信息: SENT: 
      HeapBuffer[pos=0 lim=29 cap=30: 54 68 75 20 46 65 62 20 32 31 20 31 36 3A 
      32 30...] <BR>2008-2-21 16:20:14 org.apache.MINA.filter.logging.LogLevel$4 
      log <BR>信息: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty] 5．客户端开发示例 
      <BR>首先定义类TimeClientHandler来处理消息接收事件： <BR>class TimeClientHandler extends 
      IoHandlerAdapter{ <BR>public TimeClientHandler() { <BR>} <BR>@Override 
      <BR>public void messageReceived(IoSession session, Object message) throws 
      Exception { <BR>System.out.println(message);//显示接收到的消息 <BR>} <BR>} 
      <BR>接着定义MinaTimeClient类用于连接服务端，并向服务端发送消息： <BR>public class MinaTimeClient 
      { <BR>public static void main(String[] args) { <BR>// 创建客户端连接器. 
      <BR>NioSocketConnector connector = new NioSocketConnector(); 
      <BR>connector.getFilterChain().addLast( "logger", new LoggingFilter() ); 
      <BR>connector.getFilterChain().addLast( "codec", new ProtocolCodecFilter( 
      new TextLineCodecFactory( Charset.forName( "UTF-8" )))); //设置编码过滤器 
      <BR>connector.setConnectTimeout(30); <BR>connector.setHandler(new 
      TimeClientHandler());//设置事件处理器 <BR>ConnectFuture cf = connector.connect( 
      <BR>new InetSocketAddress("127.0.0.1", 9123));//建立连接 
      <BR>cf.awaitUninterruptibly();//等待连接创建完成 
      <BR>cf.getSession().write("hello");//发送消息 
      <BR>cf.getSession().write("quit");//发送消息 
      <BR>cf.getSession().getCloseFuture().awaitUninterruptibly();//等待连接断开 
      <BR>connector.dispose(); <BR>} <BR>} <BR>6．总结 
      <BR>通过上述示例可以了解到：使用MINA框架来开发的网络应用程序代码结构更清晰；MINA框架完成了底层的线程管理；MINA内置的编码器可以满足大多数用户的需求，省去了开发人员消息编码解码的工作。具称使用MINA开发服务器程序的性能已经逼近使用 
      C/C++ 语言开发的网络服务。因此，建议在网络应用程序开发过程中尝试使用MINA框架来提高我们的开发效率和应用程序的执行效率。 </P>
      <P><SPAN>网通系统集成<SPAN>公司 杨庆成</SPAN></SPAN></P></DIV>
      <DIV id="topic_copyright">声明：ITeye文章版权属于作者，受法律保护。没有作者书面许可不得转载。 </DIV>
      <DIV id="forum_recommended_f5"><SPAN>推荐链接</SPAN>
      <UL>
        <LI><A href="http://www.iteye.com/clicks/609" target="_blank"><!--AdForward Begin:-->
<SCRIPT type="text/javascript" charset="gbk" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/AllyesDeliver.min.js" ads-src="http://csdnim.allyes.com/main/s?user=iteye|forums|banner4&amp;db=csdnim&amp;border=0&amp;local=yes&amp;js=ie"></SCRIPT>
        <!--AdForward End--></A></LI></UL></DIV>
      <DIV id="forum_recommended_f0"><IFRAME height="90" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/942.htm" 
      frameBorder="0" width="728" scrolling="no"></IFRAME></DIV></TD></TR>
  <TR>
    <TD class="postauthor"><A 
      href="http://www.iteye.com/topic/166596#">返回顶楼</A></TD>
    <TD class="postcontent">
      <DIV class="icons"><A class="icon_www" title="浏览作者的博客" href="http://tw801.iteye.com/">&nbsp;</A><A 
      class="icon_profile" title="浏览作者资料" href="http://tw801.iteye.com/blog/profile">&nbsp;</A><A 
      class="icon_pm" title="发送站内短信" href="http://my.iteye.com/messages/new?message%5Breceiver_name%5D=tw801">&nbsp;</A><A 
      class="icon_guestbook" title="给作者留言" href="http://tw801.iteye.com/blog/guest_book">&nbsp;</A><A 
      class="icon_rss" title="关注作者" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Si5P99XfCGb37FkzWyE80pPlRkWjg4y/KHoD+vP2KpE='); f.appendChild(s);f.submit();return false;" 
      href="http://my.iteye.com/feed?subscription%5Bsubscribed_user_name%5D=tw801">&nbsp;</A></DIV></TD>
  </TR>
  <TR class="sep2">
    <TD colSpan="2"></TD></TR>
  <TR id="475069">
    <TD class="postauthor">
      <UL>
        <LI class="name">galaxystar</LI>
        <LI>等级: <IMG title="五钻会员" alt="五钻会员" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/dimd5.gif"></LI>
        <LI><A href="http://galaxystar.iteye.com/" target="_blank"><IMG class="logo" 
        title="galaxystar的博客: 请访问 kenwublog.com" alt="galaxystar的博客" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/472ad1ea-3916-3b46-9b45-153f56be19fa.jpg"></A></LI>
        <LI>性别: <IMG title="男" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/icon_minigender_1.gif"></LI>
        <LI>文章: 631</LI>
        <LI>积分: 2483</LI>
        <LI>来自: 杭州</LI>
        <LI><IMG src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/offline.gif"></LI></UL></TD>
    <TD class="postcontent">
      <DIV class="postactions">
      <DIV class="description">        &nbsp;&nbsp;        
      发表时间：2008-03-02&nbsp;&nbsp;              </DIV>
      <DIV class="links"></DIV></DIV>
      <DIV class="postbody clearfix">不错，好几个项目都用它!<BR>希望 mina 仍旧保持着，简单，高效。    
      </DIV></TD></TR>
  <TR>
    <TD class="postauthor"><A 
      href="http://www.iteye.com/topic/166596#">返回顶楼</A></TD>
    <TD class="postcontent">
      <DIV class="icons"><A class="icon_www" title="浏览作者的博客" href="http://galaxystar.iteye.com/">&nbsp;</A><A 
      class="icon_profile" title="浏览作者资料" href="http://galaxystar.iteye.com/blog/profile">&nbsp;</A><A 
      class="icon_pm" title="发送站内短信" href="http://my.iteye.com/messages/new?message%5Breceiver_name%5D=galaxystar">&nbsp;</A><A 
      class="icon_guestbook" title="给作者留言" href="http://galaxystar.iteye.com/blog/guest_book">&nbsp;</A><A 
      class="icon_rss" title="关注作者" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Si5P99XfCGb37FkzWyE80pPlRkWjg4y/KHoD+vP2KpE='); f.appendChild(s);f.submit();return false;" 
      href="http://my.iteye.com/feed?subscription%5Bsubscribed_user_name%5D=galaxystar">&nbsp;</A><A 
      title="galaxystar回帖:基于MINA框架快速开发网络应用程序" href="http://www.iteye.com/topic/166596#475069">回帖地址</A></DIV>
      <DIV id="post_rate_box_475069" class="post_rate_box"><A class="good" 
      title="好" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      <A class="hidden" title="差" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      请登录后投票</DIV></TD></TR>
  <TR class="sep2">
    <TD colSpan="2"></TD></TR>
  <TR id="475070">
    <TD class="postauthor">
      <UL>
        <LI class="name">剑事</LI>
        <LI>等级: <IMG title="一星会员" alt="一星会员" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/star1.gif"></LI>
        <LI><A href="http://jfy3d.iteye.com/" target="_blank"><IMG class="logo" 
        title="剑事的博客: 剑 事  www.jfyapp.com" alt="剑事的博客" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/be4e72d4-b51c-33c7-aac9-58d540474f13.jpg"></A></LI>
        <LI>性别: <IMG title="男" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/icon_minigender_1.gif"></LI>
        <LI>文章: 644</LI>
        <LI>积分: 110</LI>
        <LI>来自: 北京</LI>
        <LI><IMG src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/offline.gif"></LI></UL></TD>
    <TD class="postcontent">
      <DIV class="postactions">
      <DIV class="description">&nbsp;&nbsp;        发表时间：2008-03-02&nbsp;&nbsp;   
                 </DIV>
      <DIV class="links"></DIV></DIV>
      <DIV class="postbody clearfix">这东西是不是没有同步连接模式<BR><BR>找了好多地方都是异步的资料    
      </DIV></TD></TR>
  <TR>
    <TD class="postauthor"><A 
      href="http://www.iteye.com/topic/166596#">返回顶楼</A></TD>
    <TD class="postcontent">
      <DIV class="icons"><A class="icon_www" title="浏览作者的博客" href="http://jfy3d.iteye.com/">&nbsp;</A><A 
      class="icon_profile" title="浏览作者资料" href="http://jfy3d.iteye.com/blog/profile">&nbsp;</A><A 
      class="icon_pm" title="发送站内短信" href="http://my.iteye.com/messages/new?message%5Breceiver_name%5D=%E5%89%91%E4%BA%8B">&nbsp;</A><A 
      class="icon_guestbook" title="给作者留言" href="http://jfy3d.iteye.com/blog/guest_book">&nbsp;</A><A 
      class="icon_rss" title="关注作者" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Si5P99XfCGb37FkzWyE80pPlRkWjg4y/KHoD+vP2KpE='); f.appendChild(s);f.submit();return false;" 
      href="http://my.iteye.com/feed?subscription%5Bsubscribed_user_name%5D=%E5%89%91%E4%BA%8B">&nbsp;</A><A 
      title="剑事回帖:基于MINA框架快速开发网络应用程序" href="http://www.iteye.com/topic/166596#475070">回帖地址</A></DIV>
      <DIV id="post_rate_box_475070" class="post_rate_box"><A class="good" 
      title="好" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      <A class="hidden" title="差" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      请登录后投票</DIV></TD></TR>
  <TR class="sep2">
    <TD colSpan="2"></TD></TR>
  <TR id="475177">
    <TD class="postauthor">
      <UL>
        <LI class="name">melin</LI>
        <LI>等级: <IMG title="五星会员" alt="五星会员" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/star5.gif"></LI>
        <LI><A href="http://melin.iteye.com/" target="_blank"><IMG class="logo" 
        title="melin的博客: melin" alt="melin的博客" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/764c44f3-9155-3cc7-b9f9-13ab8677eef9.jpg"></A></LI>
        <LI>性别: <IMG title="男" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/icon_minigender_1.gif"></LI>
        <LI>文章: 494</LI>
        <LI>积分: 503</LI>
        <LI>来自: 合肥</LI>
        <LI><IMG src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/offline.gif"></LI></UL></TD>
    <TD class="postcontent">
      <DIV class="postactions">
      <DIV class="description">&nbsp;&nbsp;        发表时间：2008-03-02&nbsp;&nbsp;   
                 </DIV>
      <DIV class="links"></DIV></DIV>
      <DIV class="postbody clearfix">二月份的程序员上有篇文章介绍了..讲的比较清晰！    </DIV></TD></TR>
  <TR>
    <TD class="postauthor"><A 
      href="http://www.iteye.com/topic/166596#">返回顶楼</A></TD>
    <TD class="postcontent">
      <DIV class="icons"><A class="icon_www" title="浏览作者的博客" href="http://melin.iteye.com/">&nbsp;</A><A 
      class="icon_profile" title="浏览作者资料" href="http://melin.iteye.com/blog/profile">&nbsp;</A><A 
      class="icon_pm" title="发送站内短信" href="http://my.iteye.com/messages/new?message%5Breceiver_name%5D=melin">&nbsp;</A><A 
      class="icon_guestbook" title="给作者留言" href="http://melin.iteye.com/blog/guest_book">&nbsp;</A><A 
      class="icon_rss" title="关注作者" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Si5P99XfCGb37FkzWyE80pPlRkWjg4y/KHoD+vP2KpE='); f.appendChild(s);f.submit();return false;" 
      href="http://my.iteye.com/feed?subscription%5Bsubscribed_user_name%5D=melin">&nbsp;</A><A 
      title="melin回帖:基于MINA框架快速开发网络应用程序" href="http://www.iteye.com/topic/166596#475177">回帖地址</A></DIV>
      <DIV id="post_rate_box_475177" class="post_rate_box"><A class="good" 
      title="好" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      <A class="hidden" title="差" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      请登录后投票</DIV></TD></TR>
  <TR class="sep2">
    <TD colSpan="2"></TD></TR>
  <TR id="607906">
    <TD class="postauthor">
      <UL>
        <LI class="name">xcly</LI>
        <LI>等级: 初级会员</LI>
        <LI><A href="http://xcly.iteye.com/" target="_blank"><IMG class="logo" 
        title="xcly的博客: 关注大型网站架构、海量数据存储、高性能IO框架、高可用/高伸缩/高性能方案、企业应用集成等" alt="xcly的博客" 
        src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/2610d8aa-6e31-3588-89ab-8985c0230c77.jpg"></A></LI>
        <LI>性别: <IMG title="男" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/icon_minigender_1.gif"></LI>
        <LI>文章: 20</LI>
        <LI>积分: 54</LI>
        <LI>来自: 深圳</LI>
        <LI><IMG src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/offline.gif"></LI></UL></TD>
    <TD class="postcontent">
      <DIV class="postactions">
      <DIV class="description">&nbsp;&nbsp;        发表时间：2008-07-22&nbsp;&nbsp;   
                 </DIV>
      <DIV class="links"></DIV></DIV>
      <DIV class="postbody clearfix">最近正好开发一个统计系统,需要用到mina,跟杨大哥学习下~~
      <BR>看到你的名字觉得很熟,突然记得你吉林四平的彩铃系统正是出自你的手笔~~~    </DIV></TD></TR>
  <TR>
    <TD class="postauthor"><A 
      href="http://www.iteye.com/topic/166596#">返回顶楼</A></TD>
    <TD class="postcontent">
      <DIV class="icons"><A class="icon_www" title="浏览作者的博客" href="http://xcly.iteye.com/">&nbsp;</A><A 
      class="icon_profile" title="浏览作者资料" href="http://xcly.iteye.com/blog/profile">&nbsp;</A><A 
      class="icon_pm" title="发送站内短信" href="http://my.iteye.com/messages/new?message%5Breceiver_name%5D=xcly">&nbsp;</A><A 
      class="icon_guestbook" title="给作者留言" href="http://xcly.iteye.com/blog/guest_book">&nbsp;</A><A 
      class="icon_rss" title="关注作者" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Si5P99XfCGb37FkzWyE80pPlRkWjg4y/KHoD+vP2KpE='); f.appendChild(s);f.submit();return false;" 
      href="http://my.iteye.com/feed?subscription%5Bsubscribed_user_name%5D=xcly">&nbsp;</A><A 
      title="xcly回帖:基于MINA框架快速开发网络应用程序" href="http://www.iteye.com/topic/166596#607906">回帖地址</A></DIV>
      <DIV id="post_rate_box_607906" class="post_rate_box"><A class="good" 
      title="好" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      <A class="hidden" title="差" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      请登录后投票</DIV></TD></TR>
  <TR class="sep2">
    <TD colSpan="2"></TD></TR>
  <TR id="688669">
    <TD class="postauthor">
      <UL>
        <LI class="name">shijiyu</LI>
        <LI>等级: 初级会员</LI>
        <LI><A href="http://shijiyu.iteye.com/" target="_blank"><IMG class="logo" 
        title="shijiyu的博客: shijiyu" alt="shijiyu的博客" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/3f021b15-5aee-4876-a4b6-41f3236eee58.jpg"></A></LI>
        <LI>性别: <IMG title="男" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/icon_minigender_1.gif"></LI>
        <LI>文章: 37</LI>
        <LI>积分: 0</LI>
        <LI>来自: 成都</LI>
        <LI><IMG src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/offline.gif"></LI></UL></TD>
    <TD class="postcontent">
      <DIV class="postactions">
      <DIV class="description">&nbsp;&nbsp;        发表时间：2008-10-07&nbsp;&nbsp;   
                 </DIV>
      <DIV class="links"></DIV></DIV>
      <DIV class="postbody clearfix">楼主写的很详细 正在做一个mina框架的项目 学习    </DIV></TD></TR>
  <TR>
    <TD class="postauthor"><A 
      href="http://www.iteye.com/topic/166596#">返回顶楼</A></TD>
    <TD class="postcontent">
      <DIV class="icons"><A class="icon_www" title="浏览作者的博客" href="http://shijiyu.iteye.com/">&nbsp;</A><A 
      class="icon_profile" title="浏览作者资料" href="http://shijiyu.iteye.com/blog/profile">&nbsp;</A><A 
      class="icon_pm" title="发送站内短信" href="http://my.iteye.com/messages/new?message%5Breceiver_name%5D=shijiyu">&nbsp;</A><A 
      class="icon_guestbook" title="给作者留言" href="http://shijiyu.iteye.com/blog/guest_book">&nbsp;</A><A 
      class="icon_rss" title="关注作者" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Si5P99XfCGb37FkzWyE80pPlRkWjg4y/KHoD+vP2KpE='); f.appendChild(s);f.submit();return false;" 
      href="http://my.iteye.com/feed?subscription%5Bsubscribed_user_name%5D=shijiyu">&nbsp;</A><A 
      title="shijiyu回帖:基于MINA框架快速开发网络应用程序" href="http://www.iteye.com/topic/166596#688669">回帖地址</A></DIV>
      <DIV id="post_rate_box_688669" class="post_rate_box"><A class="good" 
      title="好" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      <A class="hidden" title="差" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      请登录后投票</DIV></TD></TR>
  <TR class="sep2">
    <TD colSpan="2"></TD></TR>
  <TR id="842793">
    <TD class="postauthor">
      <UL>
        <LI class="name">quiii</LI>
        <LI>等级: 初级会员</LI>
        <LI><A href="http://roserouge.iteye.com/" target="_blank"><IMG class="logo" 
        title="quiii的博客: this is Morris" alt="quiii的博客" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/416559d7-1d59-36cf-a79c-db73a4bb96f1.png"></A></LI>
        <LI>性别: <IMG title="男" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/icon_minigender_1.gif"></LI>
        <LI>文章: 93</LI>
        <LI>积分: 0</LI>
        <LI>来自: 北京</LI>
        <LI><IMG src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/offline.gif"></LI></UL></TD>
    <TD class="postcontent">
      <DIV class="postactions">
      <DIV class="description">&nbsp;&nbsp;        发表时间：2009-01-13&nbsp;&nbsp;   
                 </DIV>
      <DIV class="links"></DIV></DIV>
      <DIV class="postbody clearfix">- -! mina官方示例 时间服务器 翻译得不错    </DIV></TD></TR>
  <TR>
    <TD class="postauthor"><A 
      href="http://www.iteye.com/topic/166596#">返回顶楼</A></TD>
    <TD class="postcontent">
      <DIV class="icons"><A class="icon_www" title="浏览作者的博客" href="http://roserouge.iteye.com/">&nbsp;</A><A 
      class="icon_profile" title="浏览作者资料" href="http://roserouge.iteye.com/blog/profile">&nbsp;</A><A 
      class="icon_pm" title="发送站内短信" href="http://my.iteye.com/messages/new?message%5Breceiver_name%5D=quiii">&nbsp;</A><A 
      class="icon_guestbook" title="给作者留言" href="http://roserouge.iteye.com/blog/guest_book">&nbsp;</A><A 
      class="icon_rss" title="关注作者" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'Si5P99XfCGb37FkzWyE80pPlRkWjg4y/KHoD+vP2KpE='); f.appendChild(s);f.submit();return false;" 
      href="http://my.iteye.com/feed?subscription%5Bsubscribed_user_name%5D=quiii">&nbsp;</A><A 
      title="quiii回帖:基于MINA框架快速开发网络应用程序" href="http://www.iteye.com/topic/166596#842793">回帖地址</A></DIV>
      <DIV id="post_rate_box_842793" class="post_rate_box"><A class="good" 
      title="好" onclick="return false;" href="http://www.iteye.com/topic/166596#">1</A> 
      <A class="hidden" title="差" onclick="return false;" href="http://www.iteye.com/topic/166596#">0</A> 
      请登录后投票</DIV></TD></TR>
  <TR class="sep2">
    <TD colSpan="2"></TD></TR></TBODY></TABLE>
<DIV class="actions">
<DIV class="buttons"></DIV>
<DIV class="wrapper"></DIV></DIV>
<DIV>
<DIV class="crumbs"><A href="http://www.iteye.com/forums">论坛首页</A> <SPAN class="arrow">→</SPAN><A 
href="http://www.iteye.com/forums/board/Java">Java企业应用版</A><BR><BR>跳转论坛:<SELECT 
id="forum_urlname" onchange="window.location='/forums/board/'+this.value" name="forum[urlname]"><OPTION 
  value="mobile">移动开发技术</OPTION><OPTION value="web">Web前端技术</OPTION><OPTION 
  selected="selected" value="Java">Java企业应用</OPTION><OPTION 
  value="language">编程语言技术</OPTION><OPTION value="Tech">综合技术</OPTION><OPTION 
  value="New">入门技术</OPTION><OPTION value="Job">招聘求职</OPTION><OPTION 
  value="Life">海阔天空</OPTION></SELECT></DIV></DIV>
<DIV style="display: none;">
<FORM id="post_rate_form" onsubmit="new Ajax.Request('/posts/rate', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;" 
method="post" action="/posts/rate">
<DIV style="margin: 0px; padding: 0px; display: inline;"><INPUT name="authenticity_token" 
value="Si5P99XfCGb37FkzWyE80pPlRkWjg4y/KHoD+vP2KpE=" type="hidden"></DIV><INPUT 
id="post_rate_id" name="id" type="hidden"><INPUT id="post_rate_type" name="type" 
type="hidden"></FORM></DIV>
<SCRIPT type="text/javascript">
  function processComment() {
    fix_image_size($$('div.postbody img'), 760);
    
    $$('#forum_main > #posts > tr[id]').each(function(tr){
      var post_id = tr.id;
      $$("#"+post_id+" pre[name=code]").each(function(pre, index){
        var location = window.location;
        source_url = location.protocol + "//" + location.host + location.pathname + location.search;
        source_url += "#" + post_id;
        pre.writeAttribute('codeable_type', 'Post');
        pre.writeAttribute('codeable_id', post_id);
        pre.writeAttribute('source_url', source_url);
        pre.writeAttribute('pre_index', index);
        pre.writeAttribute('title', '基于MINA框架快速开发网络应用程序');
      });
    });
  }

  dp.SyntaxHighlighter.HighlightAll('code', true, true);
  processComment();
  code_favorites_init();

  function rate_post(id, type) {
    Element.update('post_rate_box_' + id, '提交中...');
    new Ajax.Request('/posts/rate', {asynchronous:true, evalScripts:true, parameters:{"id":id, "type":type}});
  }

  function rate_topic(type) {
    Element.update('topic_rate_box', '提交中...');
    new Ajax.Request('/topics/rate', {asynchronous:true, evalScripts:true, parameters:{"id":166596, "type":type}});
  }
</SCRIPT>
</DIV>
<DIV id="nav">
<DIV class="wrapper">
<UL>
  <LI><A href="http://www.iteye.com/">首页</A></LI>
  <LI><A href="http://www.iteye.com/news">资讯</A></LI>
  <LI><A href="http://www.iteye.com/magazines">精华</A></LI>
  <LI><A class="selected" href="http://www.iteye.com/forums">论坛</A></LI>
  <LI><A href="http://www.iteye.com/ask">问答</A></LI>
  <LI><A href="http://www.iteye.com/blogs">博客</A></LI>
  <LI><A href="http://www.iteye.com/blogs/subjects">专栏</A></LI>
  <LI><A href="http://www.iteye.com/groups">群组</A></LI>
  <LI><A href="http://job.iteye.com/iteye" target="_blank">招聘</A></LI>
  <LI class="last"><A href="http://www.iteye.com/search">搜索</A></LI></UL></DIV>
</DIV></DIV>
<DIV id="footer">
<DIV id="site_nav">
<UL>
  <LI><A href="http://www.iteye.com/index/service">广告服务</A></LI>
  <LI><A href="http://webmaster.iteye.com/">ITeye黑板报</A></LI>
  <LI><A href="http://www.iteye.com/index/contactus">联系我们</A></LI>
  <LI class="last"><A 
  href="http://www.iteye.com/index/friend_links">友情链接</A></LI></UL></DIV>
<DIV id="copyright">© 2003-2014 ITeye.com.    [ <A href="http://www.miibeian.gov.cn/">京ICP证110151号</A> 
 京公网安备110105010620 ]<BR>百联优力(北京)投资有限公司  版权所有<BR></DIV></DIV></DIV>
<SCRIPT type="text/javascript">
  document.write("<img src='http://stat.iteye.com/?url="+ encodeURIComponent(document.location.href) + "&referrer=" + encodeURIComponent(document.referrer) + "&user_id=' width='0' height='0' />");
</SCRIPT>

<SCRIPT type="text/javascript" src="基于MINA框架快速开发网络应用程序%20-%20Java%20-%20ITeye论坛_files/tracking.js"></SCRIPT>
</BODY></HTML>
